/**
 * @license Copyright 2018 Google Inc. All Rights Reserved.
 * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
 * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
 */

:root {
  --divider-color: rgba(0, 0, 0, 0.14);
  --sidebar-width: 200px;
  --search-height: 50px;
  --hover-color: rgba(225, 245, 254, 0.49);
  --selected-color: #e3f2fd;
  --monospace: Consolas, Menlo, monospace;
  --non-monospace: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  --black: #24292e;
  font-family: var(--non-monospace);
  line-height: 1.5;
  color: var(--black);
}

body {
  background-color: #fafafa;
}

settings-button {
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0.5;
  flex-shrink: 0;
  display: none;
  transform: scale(0.8);
}

settings-button img {
  width: 31px;
}

settings-button:hover {
  opacity: 1;
}

home-button {
  display: flex;
  align-items: center;
  justify-content: center;
  transform: scale(0.75);
  cursor: pointer;
  opacity: 0.5;
  flex-shrink: 0;
}

home-button:hover {
  opacity: 1;
}

menu-button {
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0.5;
  flex-shrink: 0;
  display: none;
}

menu-button:hover {
  opacity: 1;
}

search-button {
  padding-right: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0.5;
  flex-shrink: 0;
  display: none;
}

search-button:hover {
  opacity: 1;
}

app-title {
  font-size: 20px;
  color: white;
  white-space: nowrap;
  flex-shrink: 0;
  margin-left: 1ex;
}

.show-mobile-search app-title {
  display: none;
}

app-title-version-name {
  border-bottom: 1px dashed white;
  cursor: pointer;
}

app-title-version-name:hover {
  border-bottom: 2px dashed white;
}

a {
  font-weight: normal !important;
  color: #0366d6;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

external-link-icon {
  background-position: center right;
  background-repeat: no-repeat;
  background-image: linear-gradient(transparent,transparent),url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%2212%22 height=%2212%22%3E %3Cpath fill=%22%23fff%22 stroke=%22%2336c%22 d=%22M1.5 4.518h5.982V10.5H1.5z%22/%3E %3Cpath fill=%22%2336c%22 d=%22M5.765 1H11v5.39L9.427 7.937l-1.31-1.31L5.393 9.35l-2.69-2.688 2.81-2.808L4.2 2.544z%22/%3E %3Cpath fill=%22%23fff%22 d=%22M9.995 2.004l.022 4.885L8.2 5.07 5.32 7.95 4.09 6.723l2.882-2.88-1.85-1.852z%22/%3E %3C/svg%3E");
  width: 13px;
  height: 13px;
  display: inline-block;
}

blockquote {
  background: #FFFDE7;
  padding: 1px 1em 1px 2em;
  margin: 2em 0;
  border-left: 0.25em solid #FFEB3B;
}

loading-screen {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
}

loading-screen loading-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

loading-screen img {
  opacity: 0.1;
}

loading-screen .text {
  white-space: pre-wrap;
  text-align: center;
  margin: 2em;
}

loading-screen .spinner {
  width: 50px;
  height: 40px;
  text-align: center;
  font-size: 10px;
  margin-top: 30px;
}

loading-screen .spinner > div {
  background-color: #40b5a491;
  height: 100%;
  width: 6px;
  display: inline-block;
  -webkit-animation: sk-stretchdelay 1.2s infinite ease-in-out;
  animation: sk-stretchdelay 1.2s infinite ease-in-out;
}

loading-screen .spinner .rect2 {
  -webkit-animation-delay: -1.1s;
  animation-delay: -1.1s;
}

loading-screen .spinner .rect3 {
  -webkit-animation-delay: -1.0s;
  animation-delay: -1.0s;
}

loading-screen .spinner .rect4 {
  -webkit-animation-delay: -0.9s;
  animation-delay: -0.9s;
}

loading-screen .spinner .rect5 {
  -webkit-animation-delay: -0.8s;
  animation-delay: -0.8s;
}

@-webkit-keyframes sk-stretchdelay {
  0%, 40%, 100% { -webkit-transform: scaleY(0.4) }
  20% { -webkit-transform: scaleY(1.0) }
}

@keyframes sk-stretchdelay {
  0%, 40%, 100% {
    transform: scaleY(0.4);
    -webkit-transform: scaleY(0.4);
  }  20% {
    transform: scaleY(1.0);
    -webkit-transform: scaleY(1.0);
  }
}

@media only screen and (max-width: 800px) {
  search-button,
  settings-button,
  menu-button {
    display: flex;
  }

  app-title {
    display: none;
  }
}
